package com.example.demo.service.impl;

import com.example.demo.dao.Admin;
import com.example.demo.dao.AdminExample;
import com.example.demo.mapper.AdminMapper;
import com.example.demo.service.adminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class adminServiceImpl implements adminService {
    @Autowired
    AdminMapper adminMapper;
    @Override
    public Admin checkUser(String id, String pass) {
        Admin u = new Admin();
        u.setAdminname(id);
        u.setPassword(pass);
        return adminMapper.checkByip(u);
    }

}
